package designpattern.factory.factorymethod;

//伦敦披萨工厂
public class LDPizzaFactory extends PizzaFactory{
    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if("ld cheese".equals(orderType)){
            pizza = new LDCheesePizza();
            pizza.setName("ld cheese");
        }else if("ld greek".equals(orderType)){
            pizza = new LDGreekPizza();
            pizza.setName("ld greek");
        }
        return pizza;
    }
}
